package com.lyz.apidemo;

import java.util.Arrays;

/**
 * @ClassName Test4
 * @Description System
 * @Author 2214361854
 * @Date 2022/2/19 20:02
 * @Version 1.0
 */
public class Test4 {
    public static void main(String[] args) {
//        JVM终止 勿用
//        System.exit(0);
        //数组拷贝
        int[] arra = {10,20,30,40,50,60};
        int[] arrb = new int[5];
        System.arraycopy(arra,1,arrb,0,4);
        System.out.println(Arrays.toString(arrb));
    }
}
